package com.example.yoga.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author liwenkai
 * @since 2021-02-03
 */
@TableName("combo")
public class Combo extends Model<Combo> {

    private static final long serialVersionUID = 1L;

    /**
     * 套餐ID
     */
    @TableId(value="comboId",type = IdType.AUTO)
    private Integer comboid;

    /**
     * 套餐名
     */
    @TableField("comboName")
    private String comboname;

    /**
     * 套餐价格
     */
    @TableField("comboPrice")
    private BigDecimal comboprice;


    public Integer getComboid() {
        return comboid;
    }

    public void setComboid(Integer comboid) {
        this.comboid = comboid;
    }

    public String getComboname() {
        return comboname;
    }

    public void setComboname(String comboname) {
        this.comboname = comboname;
    }

    public BigDecimal getComboprice() {
        return comboprice;
    }

    public void setComboprice(BigDecimal comboprice) {
        this.comboprice = comboprice;
    }

    @Override
    protected Serializable pkVal() {
        return this.comboid;
    }

    @Override
    public String toString() {
        return "Combo{" +
        "comboid=" + comboid +
        ", comboname=" + comboname +
        ", comboprice=" + comboprice +
        "}";
    }
}
